#ifndef TPCSERVER
#define TPCSERVER
#include <glib.h>

class TcpServer
{
private:
    int serverFd;
    int epollId;
public:
    TcpServer();
    TcpServer(int port);
    ~TcpServer();
    void start(void*(*fn)(void*));
    void startWithPool(GFunc func);
    void acceptConn();
};


#endif